package com.xnyzc.lhy.common.entity.order;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 包车订单详情表
 *
 * @author sunzheng
 * @since 2021-08-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OaDOrderCharteredDetail对象", description = "包车详情表")
public class OaDOrderCharteredDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "订单号")
    //@TableField(exist = false)
    private String orderNo;
    @ApiModelProperty(value = "订单执行日期")
    private Date orderDate;
    @ApiModelProperty(value = "状态")
    private Integer status;
    @ApiModelProperty(value = "出发经度")
    private String flng;
    @ApiModelProperty(value = "出发纬度")
    private String flat;
    @ApiModelProperty(value = "出发位置")
    private String startAddress;
    @ApiModelProperty(value = "结束位置")
    private String endAddress;
    @ApiModelProperty(value = "结束经度")
    private String tlng;
    @ApiModelProperty(value = "结束纬度")
    private String tlat;
    @ApiModelProperty(value = "当日订单开始时间")
    private Date startTime;
    @ApiModelProperty(value = "当日订单结束时间")
    private Date endTime;
    @ApiModelProperty(value = "行驶距离（公里）")
    private String normalDistance;
    @ApiModelProperty(value = "行驶时长（分钟）")
    private String normalTime;
    @ApiModelProperty(value = "套餐费")
    private BigDecimal packageCost;
    @ApiModelProperty(value = "超出里程距离")
    private String exceedDistance;
    @ApiModelProperty(value = "超出里程费用")
    private BigDecimal exceedDistanceCost;
    @ApiModelProperty(value = "超出套餐时长")
    private String exceedTime;
    @ApiModelProperty(value = "超出套餐时长费用")
    private BigDecimal exceedTimeCost;
    @ApiModelProperty(value = "其他费用")
    private BigDecimal otherCost;
    @ApiModelProperty(value = "其他费用说明")
    private String otherCostDetail;
    @ApiModelProperty(value = "支付方式（1：线上；2：线下）")
    private Integer paymentType;
    @ApiModelProperty(value = "轨迹ID")
    private Integer trackId;
    @ApiModelProperty(value = "司机id")
    private String driverId;
    @ApiModelProperty(value = "车辆ID")
    private String vehicleId;
    @ApiModelProperty(value = "起点终点里程费")
    private BigDecimal startEndDistanceFee;
    @ApiModelProperty(value = "距离城市中心点里程费")
    private BigDecimal pointDistanceFee;

    public static final String ORDER_NO = "order_no";
    public static final String STATUS = "status";
    public static final String ORDER_DATE = "order_date";
    public static final String TRACK_ID = "track_id";
    public static final String DRIVER_ID = "driver_id";
    public static final String VEHICLE_ID = "vehicle_id";

}

